extends "../jiasikenie-3/jiasikenie-3.gd"


var baseId = ""
var upText1 = "干扰协议额外赋予2层干扰"
var upText2 = "感知抑制额外对目标造成[炮击*2]的技能伤害"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("本回合，敌方施放技能时，射程-1", "感知抑制")

func upgrade():
	.upgrade()
	if upgraded == 1:
		p2 = 5

func _onCharaCastCdSkill(cha,id):
	._onCharaCastCdSkill(cha,id)
	if cha.team != self.team and not isDeath:
		var bf = cha.hasBuff("b_jiasikenie4")
		if bf == null:
			castBuff(cha, b_jiasikenie4.new())
		elif cha.att.atkRan > 1:
			bf.att.atkRan -= 1
		if upgraded == 2:
			azurHurtChara(cha, att.atk*2, sys.HurtType.WEAPON, sys.AtkType.SKILL, "感知抑制")	
		
class b_jiasikenie4:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		id = "b_jiasikenie4"
		buffName = "感知抑制"
		isNegetive = true
		att.atkRan = -1